package com.gjh.study.mybatis.mapper2;

import com.gjh.study.mybatis.domain.Article;
import org.apache.ibatis.annotations.Select;

/**
 * @author guangjh
 * @version 1.0
 * @date 2020/7/12 7:40
 */
public interface ArticleMapper {
    @Select("select * from tb_article where id in (select article_id from tb_item where order_id = #{id})")
    Article selectArticleByOrderId(int id);
}
